import http from '../http.js'

export function insert(params) {
	return http.post('/orderInfo/insert', params)
}

export function add(params) {
	return http.post('/orderInfo/add', params)
}

export function queryByPage(params) {
	return http.post('/orderInfo/queryByPage', params)
}

export function queryById(params) {
	return http.get('/orderInfo/queryById', params)
}
export function deleteById(params) {
	return http.get('/orderInfo/deleteById', params)
}

export function update(params) {
	return http.post('/orderInfo/update', params)
}

export function queryCountByComm(params) {
	return http.post('/orderInfo/queryCountByComm', params)
}

export function queryOrderPayItemSet(params) {
	return http.get('/orderInfo/queryOrderPayItemSet', params)
}

export function orderCancel(params) {
	return http.post('/orderInfo/orderCancel', params)
}

//耗材详情
export function queryOrderInfoDetail(params) {
	return http.post('/orderMaterialInfo/queryByPage', params)
}

// 耗材支付
export function createOrder(params) {
	return http.post('/orderMaterialInfo/createOrder', params)
}

// 退款申请
export function refundApply(params) {
	return http.post('/wxPay/refund', params)
}

